package com.jmemoir.base.event.listener;

import com.jmemoir.base.event.dto.UserRegisterDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * 推送注册信息给管理员-事件监听
 *
 * @author Tellsea
 * @date 2023/8/3
 */
@Slf4j
@Component
public class UserRegisterSendManageListener {

    @EventListener
    public void handleEvent(UserRegisterDTO event) {
        log.info("推送注册信息给管理员：{}", event.getUserName());
    }
}
